import { ipcMain } from 'electron'

export const browserWidong = (callback:any) =>{

    ipcMain.on('reg', (_, isreg:any) => {
        callback(isreg)
      })

}

export const openChat = (callback:any) =>{

  ipcMain.on('openChat', (_, config:any) => {
    callback(config)
  })

}

export const openCollectionChat = (callback:any) =>{

  ipcMain.on('openCollectionChat', (_, config:any) => {
    callback(config)
  })

}

export const sreenDesktopCapturer = (callback:any) =>{

  ipcMain.on('jietu', (_, isreg:any) => {
    callback(isreg)
  })

}